package com.wgts.wgts.dagger.module;

import com.wgts.wgts.dagger.scope.ActivityScope;
import com.wgts.wgts.mvp.model.IEditPersonMessageModel;
import com.wgts.wgts.mvp.model.imp.EditPersonMessageModel;
import com.wgts.wgts.mvp.presenter.IMyCenterNikeNameActivityPresenter;
import com.wgts.wgts.mvp.presenter.imp.MyCenterNikeNameActivityPresenter;
import com.wgts.wgts.mvp.view.IMyCenterNikeNameActivityView;
import com.wgts.wgts.netmodle.NetService;

import dagger.Module;
import dagger.Provides;

/*
 *
 *
 *   data:2018/9/3010:39
 *
 */
@Module
public class MyCenterNikeNameModule {
    private IMyCenterNikeNameActivityView view;

    public MyCenterNikeNameModule(IMyCenterNikeNameActivityView view) {
        this.view = view;
    }

    @ActivityScope
    @Provides
    public IMyCenterNikeNameActivityView provideView(){
        return view;
    }

    @ActivityScope
    @Provides
    public IEditPersonMessageModel provideModel(NetService netService){
        return new EditPersonMessageModel(netService);
    }

    @ActivityScope
    @Provides
    public IMyCenterNikeNameActivityPresenter providePresenter(IMyCenterNikeNameActivityView view, IEditPersonMessageModel model){
        return new MyCenterNikeNameActivityPresenter(view, model);
    }
}
